    loadProductList()
    var productArr;

    function loadProductList() {
        let id = localStorage.getItem("id")
        var uid = id;
        console.log(uid);
        var pagenum = 0;
        var pagesize = 6;
        let listAPI = `http://jx.xuzhixiang.top/ap/api/allproductlist.php`
        let p = axios.get(listAPI, {
            params: {
                uid,
                pagenum,
                pagesize
            }
        }).then(function (respose) {
        var str = ``;
        productArr = respose.data.data
        productArr.forEach(function (pobj) {
            str += `
          <li>
            <a href="item.html?id=${pobj.pid}" target="_blank">
            <img src="${pobj.pimg}" alt="图片加载失败"  />
                <h2>${pobj.pname}</h2>
                <p>￥${pobj.pprice}</p>
            <a/>
        </li>`
        });
        let plist = document.querySelector("#plist")
        plist.innerHTML = str;
    })
}
indexBack.onclick = function () {
        location.href = "index.html"
}
car.onclick = function () {
        location.href = "mycar.html"
    }